<?php
/**
 * Description of YCommon_Lottery_CodeMap
 *
 * @author kaixin
 */
class YCommon_Lottery_CodeMap {
    public static $lotteryCodeMap = array(
        0 => '双色球',
        1 => '3D',
        2 => '七乐彩',
        3 => '大乐透',
        4 => '七星彩',
        5 => '排列3',
        6 => '排列5',
        7 => '胜负彩',
        8 => '六场半全场',
        9 => '四场进球',
    );
    
    public function getLotteryCodeByName($name)
    {
        if (in_array($name, self::$lotteryCodeMap))
        {
            return $name;
        }
        else
        {
            return null;
        }
    }
}

?>
